import 'package:flutter/material.dart';
import '../model/New.dart';

class NewDetailPage extends StatefulWidget {
  NewDetailPage({
    Key? key,
    required this.detail
  }) : super(key: key);

  final New detail;

  @override
  State<NewDetailPage> createState() => _NewDetailPageState();
}

class _NewDetailPageState extends State<NewDetailPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('消息详情'),
        centerTitle: true,
      ),
      body: Stack(
        children: [
          SingleChildScrollView(
            child: Container(
              margin: EdgeInsets.symmetric(horizontal: 15, vertical: 5),
              child: Row(
                children: [
                  Expanded(child: Text(widget.detail.content!))
                ],
              ),
            ),
          )
        ],
      ),
    );
  }
}
